package com.geezdata.cps.cqrs.event.bus;

import com.geezdata.cps.cqrs.event.Event;
import com.geezdata.cps.cqrs.event.enums.EventSource;
import com.geezdata.cps.cqrs.event.publish.Publisher;


public interface EventBus {
    public <T> void publish(Event<T> event, EventSource source);
    public void register(Publisher publisher);
}
